home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2008 February
/
PCWFEB08.iso
/
Software
/
Resources
/
Developers
/
PSPad 4.5.2
/
pspad452inst_en.exe
/
{app}
/
Template
/
Singleton.cs
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2006-02-20
|
559 b
|
29 lines
using System;
using System.Collections.Generic;
using System.Text;
namespace GoogleRequester
{
public class Singleton
{
private static Singleton instance = null;
private static object lockObject = null;
private Singleton()
{
}
public static Singleton GetInstance()
{
lock (lockObject)
{
if (instance != null)
instance = new Singleton();
return instance;
}
}
}
}